<?php /* Smarty version Smarty-3.1.13, created on 2013-07-20 22:41:00
         compiled from "C:\xampp\htdocs\new3\application\view\funcao\insert.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1679551eae216338b49-83400896%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0129d100ebff0b25f235ed2f8c2f47a82b825ee3' => 
    array (
      0 => 'C:\\xampp\\htdocs\\new3\\application\\view\\funcao\\insert.tpl',
      1 => 1374352504,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1679551eae216338b49-83400896',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51eae2163ce645_44524937',
  'variables' => 
  array (
    'header' => 0,
    'selectPessoa' => 0,
    'row' => 0,
    'selectTrabalho' => 0,
    'msgInsert' => 0,
    'footer' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51eae2163ce645_44524937')) {function content_51eae2163ce645_44524937($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['header']->value, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<form method="post">
	<label for="funcao">Função:</label>
	<input type="text" name="funcao" placeholder="Função" /><br />
	<label for="instituicao">Instituição:</label>
	<input type="text" name="instituicao" placeholder="Instituição" /><br />
	<label for="cod_pessoa">Pessoa:</label>
	<select name="cod_pessoa">
		<option value=""></option>
		<?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['selectPessoa']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
			<option value="<?php echo $_smarty_tpl->tpl_vars['row']->value['cod_pessoa'];?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value['nome_pessoa'];?>
</option>
		<?php } ?>
	</select><br />
	<label for="cod_trabalho">Trabalho:</label>
	<select name="cod_trabalho">
		<option value=""></option>
        <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['selectTrabalho']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
			<option value="<?php echo $_smarty_tpl->tpl_vars['row']->value['cod_trabalho'];?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value['titulo'];?>
</option>
		<?php } ?>
	</select><br />
	<input type="submit" name="salvar" value="salvar" />
</form>
<div align="center">
	<?php echo $_smarty_tpl->tpl_vars['msgInsert']->value;?>

</div>
<?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['footer']->value, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>